<template>
  <div></div>
</template>

<script>
import { getUrl } from "@/api/api.js";
import Cookie from "js-cookie";

export default {
  name: "index",
  data() {
    return {
      uri: "",
    };
  },
  created() {
    this.uri = this.$route.query.uri
    this.getUrl();
  },
  mounted() {

  },
  methods: {
    async getUrl() {
      const res = await getUrl({
        path: this.uri,
      });
      if (res.data.code == 0) {
        window.location.href = res.data.data;
      }
    },
  },
};
</script>
<style scoped lang='scss'>

</style>
  